.class public abstract Lcom/baidu/mobads/openad/e/e$c;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/baidu/mobads/openad/e/e;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x409
    name = "c"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Ljava/lang/Runnable;"
    }
.end annotation


# static fields
.field private static final a:Ljava/lang/Object;


# instance fields
.field private volatile b:I

.field private volatile c:Z

.field private volatile d:Ljava/lang/Thread;

.field private e:Ljava/util/concurrent/Executor;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string v0, ""

    .line 1
    sput-object v0, Lcom/baidu/mobads/openad/e/e$c;->a:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lcom/baidu/mobads/openad/e/e$c;->b:I

    return-void
.end method

.method private b()Ljava/util/concurrent/Executor;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/openad/e/e$c;->e:Ljava/util/concurrent/Executor;

    if-nez v0, :cond_0

    .line 2
    invoke-static {}, Lcom/baidu/mobads/openad/e/e;->b()Ljava/util/concurrent/Executor;

    move-result-object v0

    :cond_0
    return-object v0
.end method


# virtual methods
.method public abstract a()Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TT;"
        }
    .end annotation
.end method

.method public abstract a(Ljava/lang/Object;)V
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)V"
        }
    .end annotation
.end method

.method public abstract a(Ljava/lang/Throwable;)V
.end method

.method public run()V
    .locals 3

    .line 1
    iget v0, p0, Lcom/baidu/mobads/openad/e/e$c;->b:I

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    sget-object v0, Lcom/baidu/mobads/openad/e/e$c;->a:Ljava/lang/Object;

    monitor-enter v0

    .line 3
    :try_start_0
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v1

    iput-object v1, p0, Lcom/baidu/mobads/openad/e/e$c;->d:Ljava/lang/Thread;

    .line 4
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 5
    :try_start_1
    invoke-virtual {p0}, Lcom/baidu/mobads/openad/e/e$c;->a()Ljava/lang/Object;

    move-result-object v0

    .line 6
    iget v1, p0, Lcom/baidu/mobads/openad/e/e$c;->b:I

    if-eqz v1, :cond_1

    return-void

    .line 7
    :cond_1
    iget-boolean v1, p0, Lcom/baidu/mobads/openad/e/e$c;->c:Z

    if-eqz v1, :cond_2

    .line 8
    invoke-direct {p0}, Lcom/baidu/mobads/openad/e/e$c;->b()Ljava/util/concurrent/Executor;

    move-result-object v1

    new-instance v2, Lcom/baidu/mobads/openad/e/g;

    invoke-direct {v2, p0, v0}, Lcom/baidu/mobads/openad/e/g;-><init>(Lcom/baidu/mobads/openad/e/e$c;Ljava/lang/Object;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    goto :goto_0

    :cond_2
    const/4 v1, 0x1

    .line 9
    iput v1, p0, Lcom/baidu/mobads/openad/e/e$c;->b:I

    .line 10
    invoke-direct {p0}, Lcom/baidu/mobads/openad/e/e$c;->b()Ljava/util/concurrent/Executor;

    move-result-object v1

    new-instance v2, Lcom/baidu/mobads/openad/e/h;

    invoke-direct {v2, p0, v0}, Lcom/baidu/mobads/openad/e/h;-><init>(Lcom/baidu/mobads/openad/e/e$c;Ljava/lang/Object;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    .line 11
    iget v1, p0, Lcom/baidu/mobads/openad/e/e$c;->b:I

    if-eqz v1, :cond_3

    return-void

    :cond_3
    const/4 v1, 0x3

    .line 12
    iput v1, p0, Lcom/baidu/mobads/openad/e/e$c;->b:I

    .line 13
    invoke-direct {p0}, Lcom/baidu/mobads/openad/e/e$c;->b()Ljava/util/concurrent/Executor;

    move-result-object v1

    new-instance v2, Lcom/baidu/mobads/openad/e/i;

    invoke-direct {v2, p0, v0}, Lcom/baidu/mobads/openad/e/i;-><init>(Lcom/baidu/mobads/openad/e/e$c;Ljava/lang/Throwable;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    :catch_0
    :goto_0
    return-void

    :catchall_1
    move-exception v1

    .line 14
    :try_start_2
    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    throw v1
.end method
